package demo.controller;

import demo.enity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

/*@Controller*/
public class UserController2 {
    @Autowired
    private User user;
    public void printUser() {
        System.out.println("控制层2user:" + user);
    }
}
